import Vue from "vue";
import ComponentTemplate from "./index.vue";
const VueComponent = Vue.extend(ComponentTemplate);

export const importResources = (option: any) => {
    const vm: any = new VueComponent().$mount();
    vm.$on("sure", (model: any) => {
        if (option && option.sure) option.sure(vm, model);
    });
    vm.$on("close", (model: any) => {
        if (option && option.close) option.close(vm, model);
    });
    vm.show = true;
    return vm;
};
